package com.youlai.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.system.model.entity.SysPeriod;
import com.youlai.system.model.query.PeriodPageQuery;
import com.youlai.system.model.vo.PeriodPageVO;

import java.util.List;

public interface SysPeriodService extends IService<SysPeriod> {

    /**
     * 查询某个人某个故障的周期列表
     *
     * @param userId
     * @param courseId
     * @return
     */
    List<SysPeriod> getPeriodList(Long userId, Long courseId);

    /**
     * 周期定级分页列表
     *
     * @return
     */
    IPage<PeriodPageVO> getPeriodPage(PeriodPageQuery queryParams);


    boolean clearPeriodBy(Long studentId, Long courseId);


    boolean clearPeriodByCourseId(Long courseId);
}
